package cn.itcast.java.api;

/**
 * Author itcast
 * Date 2021/10/9 10:27
 * Desc TODO
 */
public class WaterTest {
    public static void main(String[] args) {
/*        Water water = new Water();
        water.status(); //液态水*/

        //向上转换
        Water water1 = new Ice();
        water1.status();

        //向下转换
        Ice ice = (Ice) water1;
        ice.transform();

        Water water2 = new Steam();
        water2.status();

        final String username ;
        username = "zhangsan ";
    }
}
